import { configureStore } from '@reduxjs/toolkit'

import userReducer from './modules/userStore'
import messageReducer from './modules/messageStore'
import collectReducer from './modules/collectStore'
import blogReducer from './modules/blogStore'
import userOtherInfoReducer from './modules/userOtherInfo'

export default configureStore({
  reducer: {
    // 注册子模块
    user: userReducer,
    message: messageReducer,
    collect: collectReducer,
    blog: blogReducer,
    userOtherInfo: userOtherInfoReducer
  }
})